

if build_tests
schema_dir = meson.project_build_root() / 'opt/bmc/apps/devmon/mds'
run_command('mkdir', '-p', schema_dir, check: false)
  custom_target(
    'copy_schema',
    output: 'copy_schema',
    command: ['cp', '-r', meson.current_source_dir() / 'schema.json', schema_dir / 'schema.json'],
    build_by_default: true,
  )
endif